import 'package:flutter/cupertino.dart';
import 'package:hitutor/Util/MyColor.dart';
import 'package:hitutor/Util/PageUtil.dart';
import 'package:hitutor/Widget/MyButton.dart';
import 'package:hitutor/Widget/MyImage.dart';
import 'package:hitutor/Widget/MyPage.dart';

class WordsTestDone extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MyPage(
        "測驗結束",
        Container(
            child: Column(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
          Text("恭喜您，獲得了1枚寶石!", style: TextStyle(fontWeight: FontWeight.bold, fontSize: 18, color: MyColor.C7D)),
          Row(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              LocalImage("gem.png", width: 84),
              Button("+1",
                  width: 24,
                  height: 16,
                  fontSize: 10,
                  bgColor: Color(0xffe2f2f2),
                  fontColor: MyColor.Green,
                  margin: EdgeInsets.only(top: 48))
            ],
          ),
          Button("確認", width: 80, height: 24, radius: 12, fontSize: 12, margin: EdgeInsets.only(bottom: 120), bgColor: MyColor.Orange,
              onTap: () {
            PageUtil().back(context);
          })
        ])));
  }
}
